<%-- 
    Document   : postRecruitment
    Created on : May 21, 2013, 9:52:17 PM
    Author     : MrChinh
--%>

<%@page import="entities.InforCompany"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="shortcut icon" href="resources/images/icon-viec-lam.ico" />	
        <link type="text/css" rel="stylesheet" href="resources/style/style.css">
        <link type="text/css" rel="stylesheet" href="resources/style/table_postRecruitment.css">
        <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
        <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
        <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
        <link rel="stylesheet" href="/resources/demos/style.css" />
        <script>
            $(function() {
                $( "#datepicker" ).datepicker();
            });        
        </script>
        <title>Recruitment Process System</title>
        
    </head>
    <body>

        <!-- begin header-->
        <div id="header">
            <!-- begin top header-->
            <div id="line_top">
                <div class="container">
                    <p class="sovl">The number of jobs:<strong>7299</strong></p>
                    <c:set value="${username}" var="userName"></c:set>
                    <c:if test="${empty userName}">
                        <p class="submenu"><a href="#">Contact</a> | <a href="loginServlets">Sign in</a> | <a href="account">Sign up</a></p>
                    </c:if>    
                        <c:if test="${not empty userName}">
                        <p class="submenu">Welcome ${userName.account} | <a href="LogoutServlet">Log Out</a> | <a href="#">Contact</a>  </p>
                    </c:if>     
                </div>
            </div>
            <div id="top_header">
                <div class="container">
                    <img class="logo" src="resources/images/logo.jpg" />
                    <img class="adv" src="resources/images/banner1.jpg" />
                </div>
            </div>
            <!-- begin menu top-->
            <div id="nav">
                <div class="container">
                    <img class="home" src="resources/images/home.jpg" />
                    <ul>
                        <li ><a href="index.jsp">Home page</a></li>
                        <li><a href="#">Candidates</a></li> <!--Người tìm việc--->
                        <li><a href="#">Recruiters</a></li><!--Nhà tuyển dụng--->
                        <li><a href="#">Personnel supply</a></li><!--Cung ứng nhân sự--->
                    </ul>

                </div>
            </div>
        </div>
        <div class="clear"></div>

        <!-- begin content page-->
        <div id="content">
            <div class="container">
                <!-- begin slide images -->
                <hr style="width: 1200px"/>
                    <!-- begin slide news-->
                    <div id="slide_news">
                        <div class="sn_col">
                            <h2>Category</h2>
                            <div class="col_content">
                                <a href="#"><img src="resources/images/tailieu.jpg" /></a>
                                <p>For many young people, the biggest challenge facing the job interview ...</p>
                            </div>
                        </div>
                        <div class="sn_col">
                            <h2>Create Profile</h2>
                            <div class="col_content">
                                <a href="CreateProfile"><img src="resources/images/hoso.jpg" /></a>
                                <p>For many young people, the biggest challenge facing the job interview ...</p>
                            </div>
                        </div>
                        <div class="sn_col">
                            <h2>Work Informations</h2>
                            <div class="col_content">
                                <a href="PostRecruitmentServlet"><img src="resources/images/thongtin.jpg" /></a>
                                <p>For many young people, the biggest challenge facing the job interview ...</p>
                            </div>
                        </div>
                        <div class="sn_col">
                            <h2>Job Search Diary</h2>
                            <div class="col_content">
                                <a href="#"><img src="resources/images/nhatky.jpg" /></a>
                                <p>For many young people, the biggest challenge facing the job interview ...</p>
                            </div>
                        </div>
                    </div>
                    <hr style="width: 1200px"/>
                    <!-- begin viec lam-->
                    <div id="work">
                        <div CLASS="work1_top">
                            <h3> Search a job</h3>
                            <form action="SearchWork" method="POST">
                                <div class="search">
                                    <select name="sCity" class="selectSearch">
                                        <option value="none">Choose Province/City</option><!-- Chọn Tỉnh Thành Phố-->
                                        <c:forEach items="${listWP}" var="wp">
                                            <option value="${wp.workplaceId}">${wp.workplaceName}</option>
                                        </c:forEach>                           
                                    </select>
                                    <select name="sCategory" class="selectSearch">
                                        <option value="none">Choose a Industry</option>
                                        <c:forEach items="${listC}" var="c">
                                            <option value="${c.categoryId}">${c.categoryName}</option>
                                        </c:forEach>                                                                             
                                    </select>
                                    <select name="sSalary" class="selectSearch">
                                        <option value="none">Choose Salary Grade</option>
                                        <option value="d1tr">Below 1000.000 vnd</option>
                                        <option value="1d5tr">1000.000->5000.000 vnd</option>
                                        <option value="5d8tr">5000.000->8000.000 vnd</option>
                                        <option value="8d10tr">8000.000->10.000.000 vnd</option>
                                        <option value="10d15tr">10.000.000->15.000.000 vnd</option>
                                        <option value="t15tr">Above 15.000.000 vnd</option>

                                    </select>
                                    <select name="sExp" class="selectSearch">
                                        <option value="none">Choose Year of Experience</option>
                                        <option value="0">None</option>
                                        <option value="1">1 year</option>
                                        <option value="2">2 years</option>
                                        <option value="3">3 years</option>
                                        <option value="4">4 years</option>
                                        <option value="5">5 years</option>
                                        <option value="6">Above 5 years</option>                                                      
                                    </select>
                                    <input type="submit" value="Search" name="sr" style="width: 100px;height: 30px;color: #0a81f7; margin-top: 5px;" />
                                </div>
                            </form>
                        </div>
                        <div CLASS="work1_mid">
                            <h4>  Jobs </h4>
                            <div class="viec">
                                <form action="CreateVacancy" method="POST">
                                    <table>
                                    <tbody>
                                        <tr>
                                            <td colspan="2" class="tblInfo">INFORMATION WORK</td>
                                        </tr>
                                        <tr>
                                            <td class="tbleft">Position vacancy</td>
                                            <td><input type="text" name="title" size="96"/></td>
                                        </tr>
                                        <tr>
                                            <td class="tbleft">Regency</td>
                                            <td><input type="text" name="position" size="96"/></td>
                                        </tr>
                                        <tr>
                                            <td class="tbleft">Category name</td>
                                            <td>
                                                <select name="sCategory" class="selectSearch">
                                                    <option value="none">Choose a Industry</option>
                                                    <c:forEach items="${listC}" var="c">
                                                        <option value="${c.categoryId}">${c.categoryName}</option>
                                                    </c:forEach>                                                                             
                                                </select>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="tbleft">Job type</td>
                                            <td><input type="text" name="workType" size="96"/></td>
                                        </tr>
                                    
                                        <tr>
                                            <td class="tbleft">Salary</td>
                                            <td><input type="text" name="salary" size="10"/></td>
                                        </tr>
                                        <tr>
                                            <td class="tbleft">Description work</td>
                                            <td><textarea cols="73" rows="5" name="description"></textarea></td>
                                        </tr>
                                        <tr>
                                            <td class="tbleft">Requirement number</td>
                                            <td><input type="text" name="numberRequirement" size="10"/></td>
                                        </tr>
                                        <tr>
                                            <td class="tbleft">Interests</td>
                                            <td><textarea  name="entitlement" cols="73" rows="3"></textarea></td>
                                        </tr>
                                        <tr>
                                            <td class="tbleft">Year experience  number </td>
                                            <td><input type="text" name="yearOfExperience" size="10"/> years</td>
                                        </tr>
                                        <tr>
                                            <td class="tbleft">Certificate </td>
                                            <td><input type="text" name="degree" size="96"/></td>
                                        </tr>
                                        <tr>
                                            <td class="tbleft">Requirement gender </td>
                                            <td>
                                                <input type="text" name="requirementGender"/>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="tbleft">Requirement age </td>
                                            <td><input type="text" name="requirementAge" size="10"/></td>
                                        </tr>
                                        <tr>
                                            <td class="tbleft">Requirement other </td>
                                            <td><textarea  name="requirementOther" cols="73" rows="5"></textarea></td>
                                        </tr>
                                        <tr>
                                            <td class="tbleft">Profile including </td>
                                            <td><textarea  name="profileIncluding" cols="73" rows="5"></textarea></td>
                                        </tr>
                                        <tr>
                                            <td class="tbleft">Deadline for submission </td>
                                            <td><input type="text" id="datepicker" name="txtDeadline" size="25px"></td>
                                        </tr>
                                        <tr>
                                            <td class="tbleft">Submission type </td>
                                            <td><input type="text" name="submissionType" size="96"/></td>
                                        </tr>
                                        <tr>
                                            <td class="tblclean"></td>
                                        </tr>
                                        <tr>
                                            <td colspan="2" class="tblInfo">INFORMATION CONTACT</td>
                                        </tr>
                                          
                                        
                                        <tr>
                                            <td class="tbleft">People contact </td>
                                            <td><input type="text" name="contactName" value="${c.ContactName}" size="96"/></td>
                                        </tr>
                                        <tr>
                                            <td class="tbleft">Address </td>
                                            <td><input type="text" value="${c.contactAddress}" name="contactAddress" size="96"/></td>
                                        </tr>
                                        <tr>
                                            <td class="tbleft">Email </td>
                                            <td><input type="text" value="${c.contactEmail}" name="contactEmail" size="96"/></td>
                                        </tr>
                                        <tr>
                                            <td class="tbleft">Phone number </td>
                                            <td><input type="text" value="${c.contactphone}" name="contactphone" size="96"/></td>
                                        </tr>
                                     
                                        <tr>
                                            <td class="tblclean"></td>
                                        </tr>
                                            
                                        <tr>
                                            <td colspan="2" class="tblInfo">INFORMATION COMPANY</td>
                                        </tr>
                                        <c:forEach items="${listCty}" var="c">
                                        <tr>
                                            <td class="tbleft">Company name </td>
                                            <td><input type="text" value="${c.companyName}" name="companyName" size="96"/></td>
                                        </tr>
                                        <tr>
                                            <td class="tbleft">Company overview </td>
                                            <td><input type="text" value="${c.companyOverview}" name="companyOverview" size="96"/></td>
                                        </tr>
                                        <tr>
                                            <td class="tbleft">Address </td>
                                            <td><input type="text" value="${c.companyAddress}" name="companyAddress" size="96"/></td>
                                        </tr>
                                        <tr>
                                            <td class="tbleft">Website </td>
                                            <td><input type="text" value="${c.companyWebsite}" name="companyWebsite" size="96"/></td>
                                        </tr>
                                        </c:forEach>
                                        <tr>
                                            <td class="tblclean"></td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">
                                                <div class ="sumitVacancy">
                                                    <input type="submit" value="Submit Vacancy"/>  
                                                </div>
                                            </td>
                                        </tr>

                                    </tbody>
                                </table>
                                </form>
                            </div>
                        </div>
                        <div CLASS="work1_bot">   
                            <h5> Advertisement</h5>
                            <div class="quangcao">
                                <a href="#"><img src="resources/images/quangcao.gif" style="width: 200px" /></a>                       
                                <a href="#"><img src="resources/images/quangcao3.png" style="width: 200px;height: 240px" /></a>
                                <a href="#"><img src="resources/images/quangcao.png" style="width: 200px;height: 200px" /></a>
                            </div>
                        </div>
                    </div>
                </div>

                <div id="footer">
                    <h6>@copyright FPT Aptech</h6>
                    <h6>Email: quangcao@c1104g.g1.vn</h6>
                    <h6> Tel: 844 39748899 Ext:2222 </h6>
                    <h6>Website: www.c1104g-g1.vn</h6>
                </div>
            </div>
        </div>
    </body>
</html>
